package com.imelite.qyh.service;


import com.imelite.qyh.base.result.ResultBean;
import com.imelite.qyh.base.result.ResultBeanFactory;
import com.imelite.qyh.dao.WechatMapper;
import com.imelite.qyh.model.Wechat;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class WechatService {

    @Autowired
    private WechatMapper wechatMapper;

    public Wechat selectByPrimaryKey(String id){
        return wechatMapper.selectByPrimaryKey(id);
    }

    public ResultBean updateByPrimaryKeySelective(Wechat record){
        wechatMapper.updateByPrimaryKeySelective(record);
        return ResultBeanFactory.getResultBeanSuccess();
    }
}
